\hypertarget{classmiddleware_1_1DiscoveryProxyFactory}{
\section{middleware::DiscoveryProxyFactory Class Reference}
\label{classmiddleware_1_1DiscoveryProxyFactory}\index{middleware::DiscoveryProxyFactory@{middleware::DiscoveryProxyFactory}}
}


Instantiating a \hyperlink{classmiddleware_1_1WorkerDiscoveryProxy}{WorkerDiscoveryProxy} object.  




{\ttfamily \#include $<$discovery\_\-proxy\_\-factory.hpp$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classmiddleware_1_1DiscoveryProxyFactory_a14d7c9fd64ad9b07ea8476f482327708}{DiscoveryProxyFactory} (\hyperlink{classmiddleware_1_1WorkerDiscovery}{WorkerDiscovery} $\ast$ptrtodisc)
\item 
\hyperlink{classmiddleware_1_1DiscoveryProxyFactory_adb81df4964435344cd51faaeef391bab}{DiscoveryProxyFactory} (std::string ipaddr, std::string port)
\item 
\hyperlink{classmiddleware_1_1DiscoveryProxyFactory_abbb99bc2dd16baaab277c2b0e95344be}{$\sim$DiscoveryProxyFactory} ()
\item 
\hyperlink{classmiddleware_1_1WorkerDiscoveryProxy}{WorkerDiscoveryProxy} $\ast$ \hyperlink{classmiddleware_1_1DiscoveryProxyFactory_a7d93e6141a1cfc71e26a804cff196066}{getProxy} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Instantiating a \hyperlink{classmiddleware_1_1WorkerDiscoveryProxy}{WorkerDiscoveryProxy} object. Manages instantiation of a \hyperlink{classmiddleware_1_1WorkerDiscoveryProxy}{WorkerDiscoveryProxy} object. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classmiddleware_1_1DiscoveryProxyFactory_a14d7c9fd64ad9b07ea8476f482327708}{
\index{middleware::DiscoveryProxyFactory@{middleware::DiscoveryProxyFactory}!DiscoveryProxyFactory@{DiscoveryProxyFactory}}
\index{DiscoveryProxyFactory@{DiscoveryProxyFactory}!middleware::DiscoveryProxyFactory@{middleware::DiscoveryProxyFactory}}
\subsubsection[{DiscoveryProxyFactory}]{\setlength{\rightskip}{0pt plus 5cm}DiscoveryProxyFactory::DiscoveryProxyFactory (
\begin{DoxyParamCaption}
\item[{{\bf WorkerDiscovery} $\ast$}]{ ptrtodisc}
\end{DoxyParamCaption}
)}}
\label{classmiddleware_1_1DiscoveryProxyFactory_a14d7c9fd64ad9b07ea8476f482327708}
Constructs the factory specifying the pointer to a \hyperlink{classmiddleware_1_1WorkerDiscovery}{WorkerDiscovery}. Bult proxy will be set using this pointer, getting a \hyperlink{classmiddleware_1_1WorkerDiscoveryProxy}{WorkerDiscoveryProxy} ready to get a \hyperlink{classmiddleware_1_1WorkerDescriptor}{WorkerDescriptor} when asked for a particular \hyperlink{classmiddleware_1_1TaskDescriptor}{TaskDescriptor}. \hypertarget{classmiddleware_1_1DiscoveryProxyFactory_adb81df4964435344cd51faaeef391bab}{
\index{middleware::DiscoveryProxyFactory@{middleware::DiscoveryProxyFactory}!DiscoveryProxyFactory@{DiscoveryProxyFactory}}
\index{DiscoveryProxyFactory@{DiscoveryProxyFactory}!middleware::DiscoveryProxyFactory@{middleware::DiscoveryProxyFactory}}
\subsubsection[{DiscoveryProxyFactory}]{\setlength{\rightskip}{0pt plus 5cm}DiscoveryProxyFactory::DiscoveryProxyFactory (
\begin{DoxyParamCaption}
\item[{std::string}]{ ipaddr, }
\item[{std::string}]{ port}
\end{DoxyParamCaption}
)}}
\label{classmiddleware_1_1DiscoveryProxyFactory_adb81df4964435344cd51faaeef391bab}
Constructs the factory specifying Ip address and Port of the \hyperlink{classmiddleware_1_1WorkerDiscovery}{WorkerDiscovery} in order to get a \hyperlink{classmiddleware_1_1WorkerDiscoveryProxy}{WorkerDiscoveryProxy} ready to update a worker descriptor from a \hyperlink{classmiddleware_1_1Worker}{Worker} (used for nitification system). \hypertarget{classmiddleware_1_1DiscoveryProxyFactory_abbb99bc2dd16baaab277c2b0e95344be}{
\index{middleware::DiscoveryProxyFactory@{middleware::DiscoveryProxyFactory}!$\sim$DiscoveryProxyFactory@{$\sim$DiscoveryProxyFactory}}
\index{$\sim$DiscoveryProxyFactory@{$\sim$DiscoveryProxyFactory}!middleware::DiscoveryProxyFactory@{middleware::DiscoveryProxyFactory}}
\subsubsection[{$\sim$DiscoveryProxyFactory}]{\setlength{\rightskip}{0pt plus 5cm}DiscoveryProxyFactory::$\sim$DiscoveryProxyFactory (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classmiddleware_1_1DiscoveryProxyFactory_abbb99bc2dd16baaab277c2b0e95344be}
Destroys factory. When factory encounters destructor, dynamic allocated memory for proxy is AUTOMATICALLY released; when a factory dies, its proxy is deleted. This happens also when factory is called to get a proxy more than one time. 

\subsection{Member Function Documentation}
\hypertarget{classmiddleware_1_1DiscoveryProxyFactory_a7d93e6141a1cfc71e26a804cff196066}{
\index{middleware::DiscoveryProxyFactory@{middleware::DiscoveryProxyFactory}!getProxy@{getProxy}}
\index{getProxy@{getProxy}!middleware::DiscoveryProxyFactory@{middleware::DiscoveryProxyFactory}}
\subsubsection[{getProxy}]{\setlength{\rightskip}{0pt plus 5cm}{\bf WorkerDiscoveryProxy} $\ast$ DiscoveryProxyFactory::getProxy (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classmiddleware_1_1DiscoveryProxyFactory_a7d93e6141a1cfc71e26a804cff196066}
Get Proxy: attention, a new instance is created via dynamic allocation. If a previous proxy was generated, it will be detroyed. 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
discovery\_\-proxy\_\-factory.hpp\item 
discovery\_\-proxy\_\-factory.cpp\end{DoxyCompactItemize}
